package com.onstar.cn.common.customsdkclass;

import android.app.Activity;
import android.os.Handler;

import java.lang.ref.WeakReference;

/**
 * Created by kai zhang on 2015/12/17.
 */
public abstract class SafeHandler<T extends Activity> extends Handler {
    protected WeakReference<T> reference;

    public SafeHandler(T t) {
        reference = new WeakReference<T>(t);
    }
}
